package com.msb.mall.mallsearch.vo;

import lombok.Data;

import java.util.List;

/**
 * @Author zhangjiajun
 * @Email zhangjiajun@hydsoft.com
 * @Description   封装页面所有可能提交的查询条件
 * @Date 2025/7/28 18:31
 */
@Data
public class SearchParamVO {

    private String keyword;    //关键字

    private Long catalog3Id;    //三级分类id

    /**
     * sort = salaCount_asc/desc
     * sort = skuPrice_asc/desc
     *
     * 字段 + 升/降
     */
    private String sort;        //排序


    //查询的筛选条件
    private Integer hasStock=1;   //是否只显示有货    0/1

    //brandId=1&brandId=2
    private List<Long> brandId;    //按照品牌查询   可以多选

    //skuPrice = 200 - 300
    //skuPrice = _ 300
    //skuPrice = 300 _
    private String skuPrice;   //价格区间查询

    //针对不同的属性   attrs: 1-苹果:6.5寸
    private List<String> attrs;  //按照属性信息查询


    private Integer pageNum = 1;  //多少页


}
